package com.alipay.app.groupmeal.standard.constant;

import java.security.PublicKey;

/**
 * @ProjectName: 团餐
 * @ClassName: Constant
 * @Description: 常量
 * @Author: bd-001935
 * @CreateDate: 4/11/22 2:32 PM
 * @UpdateUser: bd-001935
 * @UpdateDate: 4/11/22 2:32 PM
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class BaseConstant {

    public static final double MAX_PRICE = 9999.99;

    public static final String SERVER_SUCCESS_CODE = "10000";

    public static final long DEFAULT_TIMEOUT = 8;

    /**
     * 收银模式
     */
    public static class CASHIER_MODE {
        //自由模式
        public static final String MODE_FREE = "free";
        //固定模式
        public static final String MODE_FIXED = "fixed";
        //核销模式
        public static final String MODE_HEXIAO = "hexiao";
    }

    public static class FUNCTION_TYPE {
        public static final int CASHIER_MODE = 1;//收银模式
        public static final int SERIAL_PORT = 2; //串口通讯设备
        public static final int ORDERS = 4;//订单
        public static final int CENSUS = 5; //census统计
        public static final int OFFLINE = 6; //脱机交易
        public static final int SETTING = 7;//设置

        public static final int D_EXPIRE_TIME = 8;
    }


    public static class DISPLAY_TYPE {
        public static final int DEFAULT = 0;
        public static final int T2 = 1;
    }

    public static class FAIL_TYPE {
        public static final int PAY = 0;//支付失败
        public static final int OTHER = 2;//其它
    }

    /**
     * 系统设置
     */
    public static class SETTING {
        public static final int DOWN_FK = 0;
        public static final int DEVICE_INFO = 1;
        public static final int AUTO_DOWN_FK = 2;

        public static final int D_SUCCESS_TIME = 3;

        public static final int D_EXPIRE_TIME = 4;
    }

    /**
     * 交易
     */
    public static class ORDER {
        public static final int USER_ORDER = 0;
        public static final int SYS_ORDER = 1;
    }

    public static class PAY_TYPE {
        public static final int ONLINE = 0;
        public static final int ONLINE_REPORT = 1;
        public static final int TONG_BU_ORDER = 2;
    }

}
